package com.le.tester.onjava8.l1_9;

import com.le.tester.onjava8.l1_8.AlarmPoints;

import java.util.EnumMap;

import static com.le.tester.onjava8.l1_8.AlarmPoints.BATHROOM;
import static com.le.tester.onjava8.l1_8.AlarmPoints.KITCHEN;

/**
 * createTime：2022/10/26 15:31
 * description：EnumMaps基础
 */

interface Command {
    void action();
}

public class EnumMaps {
//    public static void main(String[] args) {
//        EnumMap<AlarmPoints.Command> em = new EnumMap<>(AlarmPoints.class);
//
//        em.put(KITCHEN, () -> System.out.println("Kitchen fire!"));
//
//        em.put(BATHROOM, () -> System.out.println("BathRoom alert"));
//
//
//    }
}
